package com.ui.basic.listener;

import com.ui.basic.ibatis.model.system.TblSUser;

public class UserStream {

	Long userId;
	String userName;
	Long roleId;
	Long locationId;

	public UserStream() {
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getLocationId() {
		return locationId;
	}

	public void setLocationId(Long locationId) {
		this.locationId = locationId;
	}

	public void updateUser(TblSUser user) {
		this.userId = user.getId();
		this.userName = user.getUsername();
		this.roleId = user.getRoleId();
		this.locationId = user.getLocId();
	}
}
